<html>
<head>
<script type="text/javascript" src="../bibliotheques/jquery.js"></script>
<script type="text/javascript" src="../bibliotheques/pause.js"></script>
<script type="text/javascript" src="../bibliotheques/jquery.blockUI.js"></script>
<script type="text/javascript" src="../bibliotheques/interface.js"></script>
<script type="text/javascript" src="../jsGUIGuy/Misc.js"></script>
<script type="text/javascript" src="../jsGUIGuy/ServerInterface.js"></script>
<script type="text/javascript" src="../jsGUIGuy/User.js"></script>
<script type="text/javascript" src="../jsGUIGuy/PatternMapping.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIAttributes.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUI.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIList.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIEvents.js"></script>
</head>
<body>

<h3>Hierarchy test, remote source</h3>

<div class="patternContainer pattern_todoType load_on_start" dataObject="todoType" dataSource="http://localhost/sources_sf_taf/web/fa_dev.php/generic_objects" defaultView="list">
  <a href="#"><span onClick="insertEmpty(this)">New Todo type</span></a>
  <div class="pattern_todoType_list" id="pattern_todoType_list" style="display:none;">
          <div style="font-style: bold" data="Name" class="toto Name"></div>
          <div style="" data="Description" class="toto Description"></div>
          <a href="#"><span onClick="goToGUIView(this,'form','list')">Edit</span></a>
          <a href="#"><span onClick="manualLoad(this,'todo')">View</span></a>

          <div class="patternContainer pattern_todo load_on_parent" style="margin-left:200px;" dataObject="todo" dataSource="http://localhost/sources_sf_taf/web/fa_dev.php/generic_objects" defaultView="list">
            <a href="#"><span onClick="insertEmpty(this)">New Todo</span></a>
                <div id="pattern_todo_form" class="pattern_todo_form" style="display:none;">
                    <div class="dragpoint">+</div>
                    <form>
                        <input type="hidden" data="unique_id" name="unique_id" class="unique_id">
                        <input type="hidden" data="objectid" name="objectid" class="objectid">
                        <input type="hidden" data="deleted" name="deleted" class="deleted">
                        <input type="checkbox" data="Done" name="Done" dataType="Boolean" class="cbtodo Done">
                        <input type="text" data="Name" name="Name" dataType="Text" class="todo_champ_form Name">
                        <input type="text" data="Description" name="Description" dataType="Text" class="todo_champ_form Description">
                        <div class="detail_todo" style="font-style: italic">Cr&eacute;e le <span data="created_at" class="created_at"></span></div>
                        <div class="detail_todo" style="font-style: italic">Termin&eacute;e le <span data="Done_date" class="Done_date"></span></div>
                        <a href="#"><span onClick="applyEditGUI(this,'list')">Ok</span></a>
                    </form>
                </div>  
                <div class="pattern_todo_list" id="pattern_todo_list" style="display:none;">
                        <div class="dragpoint">+</div>
                        <input type="checkbox" data="Done" dataType="Boolean" class="cbtodo Done" disabled><span style="font-style: bold" data="Name" class="toto Name"></span>
                        <div style="" data="Description" class="toto Description"></div>
                        <div style="font-style: italic">Cr&eacute;e le <span data="created_at" class="created_at"></span></div>
                        <div style="font-style: italic">Termin&eacute;e le <span data="Done_date" class="Done_date"></span></div>
                        <a href="#"><span onClick="goToGUIView(this,'form','list')">Edit</span></a>
                        <a href="#"><span onClick="manualLoad(this,'commentaire')">View comments</span></a>
                        
                        <div class="patternContainer pattern_commentaire load_on_parent" style="margin-left:200px;" dataObject="commentaire" dataSource="http://localhost/sources_sf_taf/web/fa_dev.php/generic_objects" defaultView="list">
                          <a href="#"><span onClick="insertEmpty(this)">New Comment</span></a>
                              <div id="pattern_commentaire_form" class="pattern_commentaire_form" style="display:none;">
                                  <div class="dragpoint">+</div>
                                  <form>
                                      <input type="hidden" data="unique_id" name="unique_id" class="unique_id">
                                      <input type="hidden" data="objectid" name="objectid" class="objectid">
                                      <input type="hidden" data="deleted" name="deleted" class="deleted">
                                      <input type="text" data="commentaire" name="commentaire" dataType="Text" class="commentaire">
                                      <div class="detail_todo" style="font-style: italic">Cr&eacute;e le <span data="created_at" class="created_at"></span></div>
                                      <a href="#"><span onClick="applyEditGUI(this,'list')">Ok</span></a>
                                  </form>
                              </div>  
                              <div class="pattern_commentaire_list" id="pattern_commentaire_list" style="display:none;">
                                      <div class="dragpoint">+</div>
                                      <div style="" data="commentaire" class="commentaire"></div>
                                      <div style="font-style: italic">Cr&eacute;e le <span data="created_at" class="created_at"></span></div>
                                      <a href="#"><span onClick="goToGUIView(this,'form','list')">Edit</span></a>
                              </div>	  
                        </div>
                </div>	  
          </div>
  </div>	  
  <div class="pattern_todoType_form" id="pattern_todoType_form" style="display:none;">
        <div class="dragpoint">+</div>
        <form>
            <input type="hidden" data="unique_id" name="unique_id" class="unique_id">
            <input type="hidden" data="objectid" name="objectid" class="objectid">
            <input type="hidden" data="deleted" name="deleted" class="deleted">
            <input type="text" data="Name" name="Name" dataType="Text" class="todo_champ_form Name">
            <input type="text" data="Description" name="Description" dataType="Text" class="todo_champ_form Description">
            <a href="#"><span onClick="applyEditGUI(this,'list')">Ok</span></a>
        </form>
  </div>    
</div>

<script type="text/javascript">

$(document).ready(function() {
  autoLoad();	
});

</script>
</body>
</html>